package com.it.mapping;

import com.it.Bean.sys_user;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Sys_userMapping implements  EntityMapping{
    @Override
    public sys_user mapping(ResultSet rs) throws SQLException {
        sys_user user = new sys_user();
        user.setId(rs.getInt("id"));
        user.setName(rs.getString("name"));
        user.setSex(rs.getString("sex"));
        user.setAge(rs.getInt("age"));
        user.setMarryed(rs.getString("marryed"));
        user.setAd(rs.getString("ad"));
        user.setTel(rs.getString("tel"));
        return user;
    }
}
